<g:form action="organizesetSave" method="post" name="teacherOrganizeSet">
<g:hiddenField name="searchFlag" value="${params.searchFlag}"/>
<g:hiddenField name="teacherID" value="${teacherInstance?.id}"/>
             <div class="dialog">
                <table>
                    <tbody> 
                        <tr  >
                            <td valign="top" class="name">
                            </td>
                            <td valign="top"  style="font-size: 14px;line-height: 200%;">
                            <ul>
<g:each in="${organizeList}" status="i" var="organizeInstance">
<%def f = haveOrganize.any {organizeInstance.id == it.id}%>
<li>${organizeInstance?.name} <g:checkBox class="checkbox" name="organizeSelect" value="${organizeInstance?.id}" checked="${f}"/>
</g:each>
                            </ul> 
                            </td>
                        </tr> 
                    </tbody>
                </table>
            </div> 

           
         <div class="buttons">
            <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span>
         </div>
</g:form>
